home *** CD-ROM | disk | FTP | other *** search
- Path: solon.com!not-for-mail
- From: seebs@solutions.solon.com (Peter Seebach)
- Newsgroups: comp.lang.c
- Subject: Re: What are the best C programming language books for beginner?
- Date: 14 Mar 1996 15:08:19 -0600
- Organization: Usenet Fact Police (Undercover)
- Message-ID: <4ia1s3$dhq@solutions.solon.com>
- References: <313FA4BD.41C67EA6@dragon.taiwan.ti.com> <3a7cc$15141.38a@news.comet.net> <199603141755.MAA21327@ncrhub5.attgis.com> <Pine.OSF.3.91.960314122139.8196A-100000@io.UWinnipeg.ca>
- NNTP-Posting-Host: solutions.solon.com
-
- In article <Pine.OSF.3.91.960314122139.8196A-100000@io.UWinnipeg.ca>,
- Bill Simpson <wsimpson@uwinnipeg.ca> wrote:
- >>There is a K&R second edition which is supposed to use ANSI examples.
-
- >I have that one and it seems pretty mongrel.
- >For example, it uses main(), not int main(void).
-
- There's nothing wrong with that; those declarations are compatible.
- "void main(void)" is actually illegal; "main()" is fine, although a good
- compiler will likely warn you that you are using a default return type, which
- is Bad. But "main()" declares main to return int, and take no arguments (or
- to take unspecified arguments, if it's a prototype), and this is Correct.
-
- Although careful study will yield several trivial errors, and at least one
- typo, in K&R 2, it's probably the best book on C I've ever read, and it is
- the main reason I have so much trouble motivating myself to keep working on a
- C reference manual.
-
- -s
- --
- Peter Seebach - seebs@solon.com - Copyright 1996 Peter Seebach.
- C/Unix wizard -- C/Unix questions? Send mail for help. No, really!
- FUCK the communications decency act. Goddamned government. [literally.]
- The *other* C FAQ - http://www.solon.com/~seebs/c/c-iaq.html
-